<!DOCTYPE html>
<html lang="<?php echo ($lang_url==''? 'es': substr($lang_url, 0, 2)); ?>">
<head>
	<meta charset="utf-8" />

  <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame 
   Remove this if you use the .htaccess -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta name="google-site-verification" content="p9s-r7-wMutOEiNtgDdFmEMrG0bar7vaoegNBHvJtmg" />

	<title><?php echo $seo['title']; ?></title>
	<meta name="description" content="<?php echo $seo['description']; ?>" />
	<meta name="author" content="pelimaniaco" />

	<meta name="viewport" content="width=device-width; initial-scale=1.0" />
	
	<link rel="shortcut icon" href="<?php echo base_url().'application/images/favicon.png'; ?>" />
	<link rel="apple-touch-icon" href="<?php echo base_url().'application/images/favicon.png'; ?>" />
	
<?php
	if(isset($this->carabiner)){
		$this->carabiner->display('css');
		$this->carabiner->display('js');
	}
?>
	<script type="text/javascript" charset="UTF-8">
		var base_url = "<?php echo Sys::$url_base; ?>",
		lang_url = "<?php echo $lang_url; ?>";
	</script>
	
	<script type="text/javascript">
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-5102546-3']);
	  _gaq.push(['_setDomainName', '.pelimaniaco.com']);
	  _gaq.push(['_trackPageview']);

	  (function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	</script>

	<meta property='fb:admins' content='100000678188027,545122602'/>
	<meta property='fb:app_id' content='298068703552361'/>
</head>
<body>
<div id="all-content">
	<div id="header">
		<header>
			<h1><?php echo $seo['title']; ?></h1>
			<a href="<?php echo base_url($lang_url).($lang_url!=''? '/': ''); ?>" class="llogo">
				<img src="<?php echo base_url().'application/images/pelimaniaco-logo.png'; ?>" class="logo" width="159" height="68" alt="<?php echo Sys::$title_web; ?>" />
			</a>
			<span class="txt_beta">Beta</span>
			
			<nav class="menu">
				<ul>
					<li class="no-border"><a href="<?php echo base_url($lang_url).($lang_url!=''? '/': ''); ?>" class="home"><?php echo lang('v_home'); ?></a></li>
					<li><a href="<?php echo base_url($lang_url.'films').'/'; ?>" class="films"><?php echo lang('v_films'); ?></a></li>
					<li><a href="<?php echo base_url($lang_url.'series').'/'; ?>" class="series"><?php echo lang('v_series'); ?></a></li>
				</ul>
			</nav>
			
			<div class="flags_lang">
			<?php
				$les = ' sel';
				$len = ' sel';
				if($lang == 'spa')
					$len = '';
				else
					$les = '';
			?>
				<a href="<?php echo base_url('chlang~spa'); ?>" class="ch_lang<?php echo $les; ?>">Español</a> | 
				<a href="<?php echo base_url('chlang~eng'); ?>" class="ch_lang<?php echo $len; ?>">English</a>
			</div>
			
			<div class="login_user">
		<?php
		if(isset($usr_info)){
		?>
				<span class="info_user btn-gray corner-all8">
					<span><img src="<?php echo $usr_info['url_foto']; ?>" class="no-margin" width="20" height="20" />
					<?php echo $usr_info['nombre']; ?> </span> | 
					<a href="<?php echo base_url($lang_url.'panel/'); ?>" title="Panel" class="panel"></a> | 
					<a href="<?php echo base_url('services/user/logout?lang_url='.$lang) ?>" title="<?php echo lang('v_logout'); ?>" class="salir"></a>
				</span>
		<?php
		}else{
		?>
				<a id="btn-login" class="btn btn-green corner-all"><?php echo lang('v_login'); ?></a>
				<div id="box-login" class="box-login">
					<span class="pico"></span>
					<div class="title">
						<span class="title float-l"><?php echo lang('v_access'); ?></span>
						<span id="box-close" class="close float-r"></span>
						<div class="clear"></div>
					</div>
					
					<form action="" method="post" class="frm1" id="frm-login">
						<input type="email" id="int-email" name="email" class="size90" placeholder="<?php echo lang('v_email'); ?>" />
						<input type="password" name="password" class="size90" placeholder="*******" />
						<div id="res_login"></div>
						<input type="submit" name="login" class="btn-blue corner-all float-r" value="<?php echo lang('v_accessed'); ?>" />
						<div class="clear"></div>
					</form>
					
					<a href="<?php echo base_url('services/facebook/sigin?lang='.$lang); ?>" class="acces-facebook"><?php echo lang('v_access_facebook'); ?></a>
					<img src="<?php echo base_url('application/images/loader.gif'); ?>" class="loader-face" width="220" height="19" />
				</div>
				<a href="<?php echo base_url($lang_url.'create_account'); ?>/" class="btn btn-blue corner-all"><?php echo lang('v_register'); ?></a>
		<?php
		} 
		?>
			</div>
			<div class="clear"></div>
		</header>
	</div>